@import './index.skeleton.wxss';

// 滑动图片轮播
.banner,
.slide-image {
  width: 750rpx;
  height: 298rpx;
}

// 导航列表
.nav-list {
  display: flex;
  flex-wrap: wrap;

  .nav-item {
    width: 20%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8rpx;

    .image {
      width: 88rpx;
      height: 88rpx;
    }

    .item-text {
      margin-top: 20rpx;
      font-size: 24rpx;
    }
  }
}

// 广告图片
.ad-list {
  padding: 20rpx 0;
  .ad-image {
    width: 750rpx;
  }
}

// 商品列表
.goods-list {
  padding: 20rpx;
  background-color: #fff;
  .goods-item {
    display: flex;
    margin-bottom: 20rpx;
    // 左侧图片
    .item-left {
      width: 240rpx;
      height: 240rpx;
      border-radius: 10rpx;
    }
    // 右侧信息
    .item-right {
      margin-left: 20rpx;
      flex: 1;
      // 两端对齐
      display: flex;
      flex-direction: column;
      justify-content: space-between;

      // 标题
      .goods_title {
        // 两行溢出隐藏
        display: -webkit-box;
        word-break: break-all;
        text-overflow: ellipsis;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-height: 1.5;
        white-space: normal;
        color: #484848;
        font-size: 28rpx;
      }

      // 价格
      .goods_price {
        .price {
          font-size: 34rpx;
          // 价格符号
          &::before {
            content: '￥';
            font-size: 80%;
          }
        }
        .min {
          color: #f03c3c;
        }
        .max {
          font-size: 90%;
          color: #ccc;
          text-decoration: line-through;
        }
      }
    }
  }
}
